package io.qar.controller;

import io.qar.commons.log.annotation.LogOperation;
import io.qar.commons.tools.constant.Constant;
import io.qar.commons.tools.page.PageData;
import io.qar.commons.tools.utils.Result;
import io.qar.commons.tools.validator.AssertUtils;
import io.qar.commons.tools.validator.ValidatorUtils;
import io.qar.commons.tools.validator.group.AddGroup;
import io.qar.commons.tools.validator.group.DefaultGroup;
import io.qar.commons.tools.validator.group.UpdateGroup;
import io.qar.dto.BusFltInfoDTO;
import io.qar.feign.ScheduleJobFeignClient;
import io.qar.service.BusFltInfoService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiImplicitParams;
import io.swagger.annotations.ApiOperation;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;
import springfox.documentation.annotations.ApiIgnore;

import java.util.Map;


/**
* 航班信息表
*
* @author yyyyjinying 
* @since 3.0 2023-10-25
*/
@RestController
@RequestMapping("busfltinfo")
@Api(tags="航班信息表")
public class BusFltInfoController {
    @Autowired
    private BusFltInfoService busFltInfoService;


    @PostMapping("insertbatchs")
    @ApiOperation("批量保存")
    public Result insertBatchs(@RequestParam("beginDate") String beginDate, @RequestParam("endDate") String endDate){


        boolean b = busFltInfoService.insertBatchs(beginDate, endDate);
        return new Result().ok(b);
    }
}